﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Class="MVVMBasic.App"
             xmlns:riasvc="clr-namespace:MVVMBasicRIALibrary;assembly=MVVMBasicRIALibrary"
             xmlns:appsvc="clr-namespace:System.ServiceModel.DomainServices.Client.ApplicationServices;assembly=System.ServiceModel.DomainServices.Client.Web"
             xmlns:auth="clr-namespace:MVVMBasicRIALibrary.Web.Services;assembly=MVVMBasicRIALibrary"
             xmlns:app="clr-namespace:Infrastructure.Tools;assembly=Infrastructure"
             xmlns:Converters="clr-namespace:Infrastructure.Tools.Converters;assembly=Infrastructure">

    <Application.ApplicationLifetimeObjects>
        <riasvc:WebContext>
            <riasvc:WebContext.Authentication>
                <appsvc:FormsAuthentication>
                    <appsvc:FormsAuthentication.DomainContext>
                        <auth:BasicAuthDomainContext />
                    </appsvc:FormsAuthentication.DomainContext>
                </appsvc:FormsAuthentication>
            </riasvc:WebContext.Authentication>
        </riasvc:WebContext>
    </Application.ApplicationLifetimeObjects>
  
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
               <!--<ResourceDictionary Source="/Infrastructure;component/Assets/Brushes.xaml" />-->
                <ResourceDictionary Source="/Infrastructure;component/Assets/Styles.xaml" />
                <ResourceDictionary Source="/Infrastructure;component/Assets/JetPack/Styles.xaml" />
                <ResourceDictionary Source="/Infrastructure;component/Assets/JetPack/CoreStyles.xaml" />
                <ResourceDictionary Source="/Infrastructure;component/Assets/JetPack/SDKStyles.xaml" />
                <ResourceDictionary Source="/Infrastructure;component/Assets/JetPack/ToolkitStyles.xaml" />
                <ResourceDictionary>
                    <app:ResourceWrapper x:Key="ResourceWrapper" />
                    <Converters:NotOperatorValueConverter x:Key="NotOperatorValueConverter" />
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
   
    </Application.Resources>
</Application>
